package com.example.tree.mapper;

import com.example.tree.bean.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.tree.bean.MenuTree;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhengDing
 * @since 2022-02-21 19:49:45
 */
public interface MenuMapper extends BaseMapper<Menu> {
    
    Menu getById(Integer id);
    
    List<MenuTree> getTreeByPid(Integer pid);
    
    List<MenuTree> getRootTree();
    
    List<MenuTree> getMainTree();
}
